#include <iostream>
#include <stdio.h>

using namespace std;

int main() {
    int n;
    cin >> n;
    long long max = 0;
    int id = 0;
    long long a;
    for(int i = 0; i< n; i++){
        cin >> a;
        if(a > max){
            max = a;
            id = i+1;
        }
    }
    cout << id;
    return 0;
}